<%@ page import="dao.CollegeDao" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
  //根据传递过来的需要删除学院的id ，调用CollegeDao的delete方法
  String  id  = request.getParameter("id");
  CollegeDao  dao  = new CollegeDao();
  if( dao.delete( Integer.parseInt(id) ) >0 )  {
      response.sendRedirect("college.jsp");
  }else{
      out.println("删除失败");
  }

%>
